package com.nervenets.web.controller.bank;

import com.nervenets.web.controller.TokenParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

@EqualsAndHashCode(callSuper = true)
@Data
public class TransferParams extends TokenParams {
    @ApiModelProperty(value = "I类卡号", required = true)
    @NotNull(message = "I类卡号不能为空")
    private String accountNumber1;
    @ApiModelProperty(value = "金额", required = true)
    @Positive(message = "请输入正确的金额")
    private int money;
}
